package lab02.test03;

import javax.xml.soap.SOAPPart;

/**
 * Created by JAVA on 2017/10/13.
 */
public class Test03 {
    //属性：计算机成绩、数学成绩、英语成绩。
    float computerScore;
    float mathScore;
    float englishScore;
    float sum;
    float average;
    Test03(){

    }
    public Test03(float computerScore, float mathScore, float englishScore) {
        this.computerScore = computerScore;
        this.mathScore = mathScore;
        this.englishScore = englishScore;
    }

    public float getComputerScore() {
        return computerScore;
    }

    public void setComputerScore(float computerScore) {
        this.computerScore = computerScore;
    }

    public float getMathScore() {
        return mathScore;
    }

    public void setMathScore(float mathScore) {
        this.mathScore = mathScore;
    }

    public float getEnglishScore() {
        return englishScore;
    }

    public void setEnglishScore(float englishScore) {
        this.englishScore = englishScore;
    }
void count(){
    sum=englishScore+mathScore+computerScore;
    average=sum/3;
    System.out.println("sum is "+sum+"average is "+average);
}
}
